package com.shrio.test.commom;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by joychen on 2017/11/10 下午12:09 .
 * version 1.0.0
 */
public interface AbstractDao<T> {

    void insert(T t)throws ThisSystemException;

    void update(T t) throws ThisSystemException;

    void delete(@Param("key") String ukfield, @Param("value") Object value) throws ThisSystemException;

    T select(@Param("key") String ukfield, @Param("value") Object value) throws ThisSystemException;

    boolean exists(@Param("key") String ukfield, @Param("value") Object value) throws ThisSystemException;

    List<T> selectLike(@Param("key") String key) throws ThisSystemException;

}
